<div class="ui teal segment">
    <div class="ui fluid vertical menu">
        {% for category in category_list %}
            <a href="{% url 'blog:type_detail' category.id %}" class="item">
                {{ category.name }}
                <div class="ui teal basic left pointing label">{{ category.num_posts }}</div>
            </a>
        {% endfor %}
    </div>
</div>